<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"></base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
$(window).load(function(){  

$("#post_img img").each(function(){
   	 var width=$(this).width();
	 var height=$(this).height();
	 alert(height);
	 if(width>750){
		 width=width*0.5;
		 height=height*0.5;
		 $("#itemImg").css("width",width);
	 	$("#itemImg").css("height",height);

	 }
	});

 })
</script>

<link type="text/css" rel="stylesheet" href="css/itemDetail.css" />

<title>具体发布记录</title>
</head>

<body>
	<div id="container">
	
		<div id="navi_container">
		
			<!--这里是navigation的顶部栏-->
			<div id="navi_top">
				<div class="navi_left">南昌站</div>
				<div class="navi_left">网页版</div>
				
				<div class="navi_right">推广使用</div>
				
			<c:choose>
               <c:when test="${sessionScope.nickName==null}">
               <div class="navi_right"><a href="#">注册</a></div>
               <div class="navi_right"><a href="user/login_queryLoginPage.action">登录</a></div>
               </c:when>                 
          	  <c:otherwise>
          	  
          	  <div class="navi_right"><a  href="user/PersonSpace_queryMsgStore.action">我的收藏</a></div>
          	  <div class="navi_right"><a href="user/login_doLogout.action">注销</a></div>
          	  <div class="navi_right"><a target="right" href="user/PersonSpace_queryLabelMsg.action">欢迎${sessionScope.nickName}</a></div>
          	 </c:otherwise>
        	</c:choose>
        	
			</div>
			<!--这里是navigation的顶部栏-->
			
			<!--这里是navigation的infor栏-->
			<div id="navigation_infor">
				<div id="logo"><a href="index.jsp"><img src="img/logo.png" width="220" height="77" border="0"/></a></div>
				<div id="search_content">
						<form action="user/search_doSearch.action?pagebean.currentPage=1" method="post" name="search" id="search" >
							<input type="text" size="37" name="keyword" />
							<input type="submit" value="搜索" id="commomSearch" />
							<input type="submit" value="高级搜索" id="advanceSearch" />
						</form>
				</div>
			</div>
			<!--这里是navigation的infor栏-->


            <!--这里是navigation导航栏-->
			<div id="navigation">
				<div class="navigator_space_left"></div>
				<a href="index.action"><div id="nvg0" class="navigator">首页</div></a>
				<c:forEach  var="catagory"  items="${list}"   varStatus="s">
				   <a href="user/publish_queryCataSecondList.action?catagoryId=${catagory.catagoryID}"><div id="nvg${s.index+1}" class="navigator">${catagory.catagoryName}</div></a>
				</c:forEach>
			</div>
			<!--这里是navigation导航栏-->

			
		</div>
		
		<!--顶部类目导航-->
		<div class="category_location" style="clear:left">
			<span>全部类目&gt;&gt;</span><span>手机数码</span><span>&gt;&gt;</span><span>小米</span>
		</div>
		
		
		<!--这里开始是中部-->
		<div id="content">
			<div id="left">
				<div id="portrait">
					<img src="img/atm.jpg" width="100" height="100"/>
					<div style="text-align:center">${pubMsg.nickname }</div>
					<div style="text-align:center">
					     <span>
					        <a  href="user/store_addDtore.action?store.publishId=${pubMsg.publishID}">收藏</a>
					     </span>&nbsp;&nbsp;
					     <span>发私信</span>
					</div>
				</div>
			</div>
			
			<div id="mid">
			
				<!--这里开始是信息-->
				<div id="infor">
				
					<ul style="list-style:none">
					
					  <c:forEach  var="attri"  items="${pubMsg.attributes}">
					      <li>
							<div style="float:left;margin-left:0px;">${attri.attributeName }:</div>
							<div style="float:left;margin-left:5px;">${attri.attributeValue }</div>
						  </li>
					  </c:forEach>
					      
					      <li><div style="float:left;margin-left:0px;color:#FF0000">联系方式:${pubMsg.telephone}</div></li>
					      <li><div style="float:left;margin-left:0px;">联系我时，请说明这是在二手淘吧上看到的,谢谢合作!</div></li>
					
					</ul>
					
				</div>
				<!--这里开始是信息-->

				<!--这里开始是放置发布内容-->
				<div id="person_content">
				   ${pubMsg.describes}
				  
				</div>
				
				
			</div>
			
			<!--这里是左侧右段-->
			<div id="right">
				<div id="bar_public_notice">
					<div id="bar_public_head">公告栏</div>
					<div style="height:auto">
						<ul style="height:auto; padding-bottom:5px;list-style: none">
							<li>求购吧须知</li>
							<li>求购吧使用手册</li>
							<li>用户须知</li>
							<li>计算机网络书吧更新</li>
							<li>1本吧公告</li>
							<li>1本吧公告</li>
							<li>1本吧公告</li>
						</ul>
					</div>
				</div>
			</div>
			<!--这里是左侧右段-->
		</div>
		<!--这里开始是中部-->
		
		
		<div style="clear:both;"></div>
		<div id="bottom">
			<div class="navigator_bottom_space_left"></div>
			<a href="#"><div id="nvg1" class="navigator_bottom">&copy;&nbsp;&nbsp;2013-2014&nbsp;&nbsp;|</div></a>
			<a href="#"><div id="nvg2" class="navigator_bottom"  style="width:120px">江西师大&nbsp;&nbsp;|</div></a>
			<a href="#"><div id="nvg3" class="navigator_bottom" style="padding-left:0px;">简介&nbsp;&nbsp;|</div></a>
			<a href="#"><div id="nvg4"class="navigator_bottom">联系方法&nbsp;&nbsp;|</div></a>
			<a href="#"><div id="nvg5" class="navigator_bottom">招聘信息&nbsp;&nbsp;|</div></a>
			<a href="#"><div id="nvg6" class="navigator_bottom">关于我们&nbsp;&nbsp;|</div></a>
			<a href="#"><div id="nvg7" class="navigator_bottom">建议反馈</div></a>
		</div>
	</div>
</body>
</html>
